﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MockPrjTeam2.DAO;
using MockPrjTeam2.Entity;

namespace MockPrjTeam2.Biz
{
    public class ProgrammesBIZ
    {
        public static ProgrammesDAO db = new ProgrammesDAO();
        public static List<ProgrammesInfor> Sp_Programme_GetAll()
        {
            return db.GetAll();
        }
        public static List<ProgrammesInfor> sp_GetByProgrammesName(string FirtName)
        {
            return db.GetByNameStartWith(FirtName);
        }
        public static bool Programmes_insert(ProgrammesInfor data)
        {
            return db.Insert(data);
        }
        public static bool Programmes_update(ProgrammesInfor data)
        {
            return db.Update(data);
        }
        public static bool Programmes_delete(string ProgrammeID)
        {
            return db.Delete(ProgrammeID);
        }
        public static List<ProgrammesInfor> Programme_Getby_Id(string PrID)
        {
            return db.GetById(PrID);
        }
        public static List<ProgrammesInfor> Sp_Programme_GetName(string Name)
        {
            return db.GetByName(Name);
        }
    }
}